﻿<!--{inc(header.view.html)}-->

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                  <li><a href="#" class="nav_icon" target="mainframe">基本设置</a></li>


	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>基本设置</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span >网站的基本信息</span>
                                    </div>


                                   
                                   
 <script language="javascript" type="text/javascript">
 
 function resize_textarea(obj,type) {
	if(type == 'plus'){
		var newheight = parseInt(document.getElementById(obj).style.height, 10) + 50;
		document.getElementById(obj).style.height = newheight + 'px';
	}else{
		var newheight = parseInt(document.getElementById(obj).style.height, 10) - 50;
		if(newheight > 0) {
			document.getElementById(obj).style.height = newheight + 'px';
		}
	}
}

 
 </script>                                  
                                   
                               
                                   
                                   
                                   
                                   
  <form onSubmit="return chksettings();" method="post" action="?app=setting&act=set"   enctype="multipart/form-data">

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center" class="table_style">
<tbody>

<tr>
	<td width="40%"><span class="bold">网站名称</span>: <br><span class="gray">显示于网站标题中，推荐 50字以内。</span></td>
	<td><input type="text" maxlength="50" size="40" value="{$data.site_title}" name="data[site_title]" id="site_title"></td>
</tr>

<tr>
	<td><span class="bold">网站关键字</span>: <br><span class="gray">网站关键字可以用于说明您的网站，多个关键词以英文半角逗号(,)隔开，建议 80字以内，有利于搜索引擎收录。</span></td>
	<td><textarea style="width: 300px; height: 30px;" name="data[site_keywords]" id="site_keywords">{$data.site_keywords}</textarea><br>
	<a onClick="resize_textarea('site_keywords','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('site_keywords','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>
<tr>
	<td><span class="bold">网站描述</span>: <br><span class="gray">网站描述可以详细说明您的网站，建议 200字以内，有利于搜索引擎收录。</span></td>
	<td><textarea style="width: 300px; height: 30px;" name="data[site_description]" id="site_description">{$data.site_description}</textarea><br>
	<a onClick="resize_textarea('site_description','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('site_description','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>



<tr>
	<td><span class="bold">网站备案</span>: <br><span class="gray">您在 <a target="_blank" href="http://www.miibeian.gov.cn/">http://www.miibeian.gov.cn/</a> 信息产业部网站的备案号。</span></td>
	<td><input type="text" maxlength="50" size="40" value="{$data.miibeian}" name="data[miibeian]" id="miibeian"></td>
</tr>


<tr>
	<td><span class="bold">访问地址</span>: <br><span class="gray">网站真实的访问地址，地址出错将会无法访问系统，请慎重！请写入详细的URL地址，如 http://yoursite ，地址最后不要以 "/" 结束</span></td>
	<td><input type="text" maxlength="150" size="40" value="{$data.site_url}" name="data[site_url]" id="phpdisk_url"></td>
</tr>

<tr>
	<td><span class="bold">文件存放目录</span>: <br><span class="gray">如果此处修改了此目录名，请在程序的根目录下修改 upfiles 的文件夹与当前设定的目录名称相同，否则会出现无法上传文件的问题。<br><span class="txtred">(不建议用户修改。)</span></span></td>
	<td><input type="text" maxlength="30" value="{$data.upfile_path}" name="data[upfile_path]" id="upfile_path"></td>
</tr>

<tr>
	<td><span class="bold">缩略图大小</span>: <br><span class="gray">网盘上传文件时，图片文件会自动生成缩略图，请确认您的服务器支持GD函数库。默认大小为120*90(px)</span></td>
	<td>长<input type="text" maxlength="4" size="6" value="{$data.thumb_width}" name="data[thumb_width]"> x 宽 <input type="text" maxlength="4" size="6" value="{$data.thumb_height}" name="data[thumb_height]"></td>
</tr>

<tr>
	<td><span class="bold">图片加水印</span>: <br><span class="gray">设置图片是否加水印</span></td>
	<td><input type="radio" <?php if ($data.is_waterimg==1) { ?>checked="checked"<?php } ?> value="1" name="data[is_waterimg]"> 是&nbsp;&nbsp;<input type="radio" value="0" name="data[is_waterimg]"  <?php if ($data.is_waterimg==0) { ?>checked="checked"<?php } ?>> 否</td>
</tr>

<tr>
	<td><span class="bold">水印图片</span>: <br><span class="gray"></span></td>
	<td>   <input id="postfile1" type="file" name="postfile1" style="height:20px;"  class="buton">  
    <br/> <br/>
    <?php if (is_file(ROOT_PATH . '/' . UPFILE_PATH . '/' .$data.waterimg_dir)) { ?>
     <img src="{$data.waterimg_dir|picdir}" onerror="this.src='{SITE_URL}/data/images/nopic.gif'" />     
    <?php }else { ?> 
     <img src="{SITE_URL}/data/images/logo.gif" onerror="this.src='{SITE_URL}/data/images/nopic.gif'" />
    <?php } ?>
    </td>
</tr>

<tr>
	<td><span class="bold">伪静态开启</span>: </td>
	<td><input type="radio" <!--{if ($data.system_url_rewrite==1)}-->checked="checked"<!--{/if}--> value="1" name="data[system_url_rewrite]"> 是&nbsp;&nbsp;<input type="radio" value="2" name="data[system_url_rewrite]" <!--{if ($data.system_url_rewrite==2)}-->checked="checked"<!--{/if}-->> 否
    </td>
</tr>

<tr>
	<td><span class="bold">静态化开启</span>: </td>
	<td><input type="radio" <!--{if ($data.system_url_html_rewrite==1)}-->checked="checked"<!--{/if}--> value="1" name="data[system_url_html_rewrite]"> 是&nbsp;&nbsp;<input type="radio" value="0" name="data[system_url_html_rewrite]" <!--{if ($data.system_url_html_rewrite==0)}-->checked="checked"<!--{/if}-->> 否
    </td>
</tr>

<tr>
	<td><span class="bold">最大上传文件</span>: <br><span class="gray">设置为 0 则为按 PHP 的 max_file_size 设置，填写格式：如0.12 ,3 等。注意：如果所填数值超过 php.ini 的设置，系统会按 php.ini 中所允许的最大值来设置</span></td>
	<td><input type="text" maxlength="10" value="{$data.max_file_size}" name="data[max_file_size]" id="max_file_size"> 当前大小: <b>{$data.max_file_size} M</b></td>
</tr>

<tr>
	<td><span class="bold">上传文件类型</span>: <br><span class="gray">允许上传的文件类型</span></td>
	<td><input type="text" maxlength="250" size="55" value="{$data.upfile_types}" name="data[upfile_types]" id="upfile_types"></td>
</tr>

<tr>
	<td><span class="bold">初始化密码</span>: <br><span class="gray">用于设置初始化密码用</span></td>
	<td><input type="text"  value="{$data.ini_password}" name="data[ini_password]" id="ini_password"></td>
</tr>

<tr>
	<td><span class="bold">应许同时在线人数</span>: <br><span class="gray">单同时在线达到这个人数时，后面的人就进不来了。0或空表示不限制</span></td>
	<td><input type="text"  value="{$data.session_users_count}" name="data[session_users_count]" id="session_users_count">人</td>
</tr>

<tr>
	<td><span class="bold">排队人数</span>: <br><span class="gray"></span></td>
	<td><input type="text"  value="{$data.queuenum}" name="data[queuenum]" id="queuenum">人</td>
</tr>

<tr>
	<td><span class="bold">静止登入的ip缓存文件</span>: <br><span class="gray">选择文件则为开启，清空则为关闭</span></td>
	<td>
            <input type="text" name="data[limit_ip_filedir]"  value="{$data.limit_ip_filedir}" id="limit_ip_filedir">
    	                                 <select  onChange="MM_keyword2(this,'limit_ip_filedir')" > 
										 <option  value="">请选择...</option> 
                                          <?php foreach((array)$icondataarray as $_key => $_value ) { ?>
							
 		                                  <option  value="{$_value}">{$_value}</option> 
										   
										 <?php } ?> 
	                                     </select>	    
    </td>
</tr>

<tr>
	<td><span class="bold">过滤不好词汇的缓存文件</span>: <br><span class="gray">选择文件则为开启，清空则为关闭</span></td>
	<td>
            <input type="text" name="data[filter_world_filedir]"  value="{$data.filter_world_filedir}" id="filter_world_filedir">
    	                                 <select  onChange="MM_keyword2(this,'filter_world_filedir')" > 
										 <option  value="">请选择...</option> 
                                          <?php foreach((array)$icondataarray as $_key => $_value ) { ?>
							
 		                                  <option  value="{$_value}">{$_value}</option> 
										   
										 <?php } ?> 
	                                     </select>	    
    </td>
</tr>

<tr>
	<td><span class="bold">人民币兑换积分</span>: <br><span class="gray">1元人民币兑换多少个积分</span></td>
	<td>1元人民币=<input type="text"  value="{$data.qian_jifengshu}" name="data[qian_jifengshu]" id="qian_jifengshu">积分</td>
</tr>

<tr>
	<td><span class="bold">启用验证码</span>: <br><span class="gray">启用验证码可以大大降低机器人的恶意注册，更好的保护系统的资源。</span></td>
	<td><input type="checkbox" value="1" id="reg" name="data[register_verycode]" <?php if  ($data.register_verycode==1) { ?>checked="checked"<?php } ?>><label for="reg">用户注册</label>&nbsp;
	<input type="checkbox" value="1" id="login" name="data[login_verycode]"<?php if  ($data.login_verycode==1) { ?>checked="checked"<?php } ?> ><label for="login">用户登录</label>&nbsp;
	</td>
</tr>


<tr>
	<td><span class="bold">页面 Gzip 压缩</span>: <br><span class="gray">将页面内容以 gzip 压缩后传输，可以加快传输速度，需 PHP 4.0.4 以上且支持 Zlib 模块才能使用</span></td>
	<td><input type="radio"  <?php if ($data.enabled_gzip==1) { ?>checked="checked"<?php } ?> value="1" name="data[enabled_gzip]"> 是&nbsp;&nbsp;<input type="radio" <?php if  ($data.enabled_gzip==0) { ?>checked="checked"<?php } ?> value="0" name="data[enabled_gzip]"> 否</td>
</tr>

<!--
<tr>
	<td><span class="bold">开启URL重写(Rewrite URL)</span>: <br><span class="gray">请确认您的服务器支持URL重写，否则，开启后将无法浏览你的网站。(只针对前台，对于管理员面板URL不重写，开启此功能，会稍微加重您的服务器负载。)</span></td>
	<td><input type="radio" <?php if  ($data.system_url_rewrite==1) { ?>checked="checked"<?php } ?> value="1" name="data[system_url_rewrite]"> 是&nbsp;&nbsp;<input type="radio" <?php if  ($data.system_url_rewrite==0) { ?>checked="checked"<?php } ?> value="0" name="data[system_url_rewrite]"> 否</td>
</tr>

-->

<tr>
	<td><span class="bold">显示版本信息</span>: <br><span class="gray">管理员设置用户系统的底部是否显示当前所用PHPDisk系统的版本信息(仅限于网站的前台页面)。</span></td>
	<td><input type="radio" <?php if ($data.version_info==1) { ?>checked="checked"<?php } ?>  value="1" name="data[version_info]"> 是&nbsp;&nbsp;<input type="radio" <?php if  ($data.version_info==0) { ?>checked="checked"<?php } ?>  value="0" name="data[version_info]"> 否</td>
</tr>


<tr>
	<td><span class="bold">允许访问系统</span>: <br><span class="gray">默认为允许访问，原因请在200字符内（选填），此选项对管理员无效。</span></td>
	<td><input type="radio" <?php if  ($data.system_open==1) { ?>checked="checked"<?php } ?>  value="1" name="data[system_open]"> 是&nbsp;&nbsp;<input type="radio" <?php if  ($data.system_open==0) { ?>checked="checked"<?php } ?> value="0" name="data[system_open]"> 否<br>
	<textarea style="width: 300px; height: 30px;" id="system_open_reason" name="data[system_open_reason]">{$data.system_open_reason}</textarea><br>
	<a onClick="resize_textarea('system_open_reason','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('system_open_reason','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>


<tr>
	<td><span class="bold">允许用户注册</span>: <br><span class="gray">关闭时，新用户将无法注册，原因请在200字符内（选填）。</span></td>
	<td><input type="radio" <?php if ($data.allow_register==1) { ?>checked="checked"<?php } ?> value="1" name="data[allow_register]"> 是&nbsp;&nbsp;<input type="radio"  <?php if ($data.allow_register==0) { ?>checked="checked"<?php } ?> value="0" name="data[allow_register]"> 否<br>
	<textarea style="width: 300px; height: 30px;" id="close_register_reason" name="data[close_register_reason]">{$data.close_register_reason}</textarea><br>
	<a onClick="resize_textarea('close_register_reason','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('close_register_reason','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>

<tr>
	<td width="40%"><span class="bold">手机短信接口资料配置: </span><br><span class="gray">要使用手机短信功能,你必须选择一个短信接口平台提供商,选择之后,你需要去对应的提供商官方网站注册一个帐号,然后他会分配给你帐号与密码.然后把他填入到以上表格里,最后再给相应的接口平台充值,才能成功的发送短信.</span></td>
	<td width="60%">
         <table width="100%" border="0" cellspacing="1" cellpadding="3"  style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
           <tr > 
             <td colspan="2" align="center"><span class="bold">手机短信接口资料配置</span></td>
           </tr>
           <tr > 
           <td align="left" width="18%">手机短信接口提供商:</td>
           <td align="left" width="82%">
        <input type="radio" name="data[sms_type]" value="eshang8"  <?php if ($data.sms_type=='eshang8') { ?>checked<?php } ?> onclick="choose_sms('eshang8')" >
        E商发短信平台(<a href="http://sms.eshang8.cn/" target="_blank"><u>官网</u></a>) <br/>
        <input type="radio" name="data[sms_type]" onclick="choose_sms('winic')" value="winic" <?php if ($data.sms_type=='winic') { ?>checked<?php } ?>  >
        移动商务应用中心(<a href="http://www.winic.org/" target="_blank"><u>官网</u></a>) <br/>
           </td>
          </tr>
       <tr  id="eshang8_1" style="display:none;"> 
      <td align="left" width="18%">帐户:</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[sms_es_name]" value="{$data.sms_es_name}">
      </td>
    </tr>
    <tr  id="eshang8_2" style="display:none;">
      <td align="left" width="18%">key：</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[sms_es_key]" value="{$data.sms_es_key}" >
      </td>
    </tr><tr  id="winic_1" style="display:none;"> 
      <td align="left" width="18%">账号:</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[sms_wi_id]" value="{$data.sms_wi_id}">
      </td>
    </tr>
    <tr  id="winic_2" style="display:none;">
      <td align="left" width="18%">密码：</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[sms_wi_pwd]" value="{$data.sms_wi_pwd}" >
      </td>
    </tr>    
</table>    
    
	</td>
</tr>


<tr>
	<td width="40%"><span class="bold">邮箱配置: </span><br><span class="gray"></span></td>
	<td width="60%">
    <table width="100%" border="0" cellspacing="1" cellpadding="3"  style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>

    <tr  id="eshang8_2" >
      <td align="left" width="18%">SMTP 服务器的主机</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[mail_server]" value="{$data.mail_server}" >
      </td>
    </tr>
	<tr  id="winic_1" > 
      <td align="left" width="18%">SMTP 服务器的端口</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[mail_port]" value="{$data.mail_port}">
      </td>
    </tr>
    <tr  id="winic_2" >
      <td align="left" width="18%">SMTP 服务器的用户名</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[mail_id]" value="{$data.mail_id}" >
      </td>
    </tr>  
    <tr  id="winic_2" >
      <td align="left" width="18%">SMTP 服务器的登陆密码</td>
      <td align="left" width="82%"> 
        <input type="text" name="data[mail_pw]" value="{$data.mail_pw}" >
      </td>
    </tr> 	
</table>    
  		
  
	</td>
</tr>



<tr>
	<td>&nbsp;</td>
	<td><input type="submit"  value=" 更 新 " class="buton"></td>
</tr>
</tbody></table>
</form>                                 
                                   
  <script language="javascript">
function get_obj(obj){
   return document.getElementById(obj);
}  
function choose_sms(type){
	if(type=='eshang8'){
		get_obj('eshang8_1').style.display="";
		get_obj('eshang8_2').style.display="";
		get_obj('winic_1').style.display="none";
		get_obj('winic_2').style.display="none";
	}else if(type=='winic'){
		get_obj('eshang8_1').style.display="none";
		get_obj('eshang8_2').style.display="none";
		get_obj('winic_1').style.display="";
		get_obj('winic_2').style.display="";		
	}
}
choose_sms('<?php if ($data.sms_type=='eshang8') { ?>winic<?php } else { ?>winic<?php } ?>');
</script>                                 
                                   
  <SCRIPT LANGUAGE="JavaScript">
<!--

function MM_keyword2(selObj,str){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!='')
  {

		get_obj(str).value=va;

  } 
}

//-->
</script>                                      
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   

                 </div>

</div>



<!--{inc(footer.view.html)}-->